package com.jk.dmuserconsumer.controller;

import com.jk.dmuserconsumer.entity.UserEntity;
import com.jk.dmuserconsumer.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 赵优秀
 * @version 1.0.0
 * @ClassName UserController.java
 * @Description TODO
 * @createTime 2021年08月30日 19:01:00
 */
@RestController
@RequestMapping("user")
public class UserController {
    @Autowired
    private UserService userService;
    //查询
  @RequestMapping("findUser")
    public List<UserEntity> findUser(UserEntity userEntity){
        return  userService.findUser(userEntity);
    }
}
